package cn.huijielong.modules.oss.entity;

import java.util.HashMap;
import java.util.Map;

import com.google.gson.Gson;
import com.google.gson.JsonObject;

public class Oss {
	private int id;
	private String name;
	private String config;
	//七牛ACCESS_KEY
    private String qiniuAccessKey;
    //七牛SECRET_KEY
    private String qiniuSecretKey;

    //阿里云EndPoint
    private String aliyunEndPoint;
    //阿里云AccessKeyId
    private String aliyunAccessKeyId;
    //阿里云AccessKeySecret
    private String aliyunAccessKeySecret;
   
    //腾讯云AppId
    private Long qcloudAppId;
    //腾讯云SecretId
    private String qcloudSecretId;
    //腾讯云SecretKey
    private String qcloudSecretKey;
    //腾讯云COS所属地区
    private String qcloudRegion;
	private Map<String,OssBucket> buckets=new HashMap<>();
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public void addBucket(OssBucket bucket) {
		buckets.put(bucket.getBucketName(), bucket);
	}
	public OssBucket getBucket(String bucketName) {
		return buckets.get(bucketName);
	}
	public String getQiniuAccessKey() {
		return qiniuAccessKey;
	}
	public void setQiniuAccessKey(String qiniuAccessKey) {
		this.qiniuAccessKey = qiniuAccessKey;
	}
	public String getQiniuSecretKey() {
		return qiniuSecretKey;
	}
	public void setQiniuSecretKey(String qiniuSecretKey) {
		this.qiniuSecretKey = qiniuSecretKey;
	}
	public String getAliyunEndPoint() {
		return aliyunEndPoint;
	}
	public void setAliyunEndPoint(String aliyunEndPoint) {
		this.aliyunEndPoint = aliyunEndPoint;
	}
	public String getAliyunAccessKeyId() {
		return aliyunAccessKeyId;
	}
	public void setAliyunAccessKeyId(String aliyunAccessKeyId) {
		this.aliyunAccessKeyId = aliyunAccessKeyId;
	}
	public String getAliyunAccessKeySecret() {
		return aliyunAccessKeySecret;
	}
	public void setAliyunAccessKeySecret(String aliyunAccessKeySecret) {
		this.aliyunAccessKeySecret = aliyunAccessKeySecret;
	}
	public Long getQcloudAppId() {
		return qcloudAppId;
	}
	public void setQcloudAppId(Long qcloudAppId) {
		this.qcloudAppId = qcloudAppId;
	}
	public String getQcloudSecretId() {
		return qcloudSecretId;
	}
	public void setQcloudSecretId(String qcloudSecretId) {
		this.qcloudSecretId = qcloudSecretId;
	}
	public String getQcloudSecretKey() {
		return qcloudSecretKey;
	}
	public void setQcloudSecretKey(String qcloudSecretKey) {
		this.qcloudSecretKey = qcloudSecretKey;
	}
	public String getQcloudRegion() {
		return qcloudRegion;
	}
	public void setQcloudRegion(String qcloudRegion) {
		this.qcloudRegion = qcloudRegion;
	}
	public Map<String, OssBucket> getBuckets() {
		return buckets;
	}
	public void setBuckets(Map<String, OssBucket> buckets) {
		this.buckets = buckets;
	}
	public String getConfig() {
		return config;
	}
	public void setConfig(String config) {
		this.config = config;
	}
	
}
